package com.onLineCar.manages.rpc;

import com.onLineCar.manages.rpc.dto.DriverInfoDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(name = "onLineCar-driver")
@Component
public interface DriverMangesRPC {

    @PostMapping("/driver/selectDriverByCarIds")
    List<DriverInfoDTO> selectDriverByCarId(@RequestBody List<Integer> carIds);

}
